package j08lianbiao;

import java.util.LinkedList;
import java.util.Vector;

public class J2 {
    public static void main(String[] args) {
        LinkedList<String> l1 = new LinkedList<>();
        l1.add("aa");
        l1.add("tt");
        System.out.println("l1 = " + l1);

        LinkedList<Integer> l2 = new LinkedList<>();
        l2.add(56);
        l2.add(33);
        l2.add(22);
        l2.add(99);
        l2.sort((num1,num2)->num1-num2);
        System.out.println("l2 = " + l2);

        Vector<String> v1 = new Vector<>();
        v1.add("ss");
        System.out.println("v1 = " + v1);
    }
}
